//菜品表

const mongoose=require('./connection')
const  menuSchema=new mongoose.Schema({
    name:String,
    price:Number,
    imgpath:String,
    specifications:String,//规格
    kind:String,//种类
    enable:{
        type:Boolean,
        default:true //默认上架
    },//当前是否可点
    catname:String   //分类
})
const menuModel=mongoose.model('menu',menuSchema,'menu')
module.exports=menuModel